Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add anchor output in vtxo tree and async redeem transaction #328

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

louisinger
Copy link
Collaborator

@louisinger louisinger commented Sep 24, 2024

This PR adds anchor outputs in all transactions needing a way to bump the miner fees.

TL;DR

  • anchors are dust outputs locked by p2wsh(OP_TRUE)
  • add anchor in covenantless bitcoin vtxo tree leaves
  • add anchor in the async payment redeem tx
  • add e2e test case spending the anchor after an unilateral exit

Note:
Anchor amount is deducted from the vtxo output amount. Thus, sending 1 BTC will create a VTXO of 1 BTC - dust.

it closes #215

@altafan @tiero please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add anchor outputs in TxBuilder
2 participants